package com.sky.Push.Annotion;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

/**
 * Created by sun on 2017-06-14.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface HandlerMapping {
    String name() default "";

    @AliasFor("type")
    int value() default 0;

    @AliasFor("value")
    int type() default 0;
}
